﻿using Microsoft.Phone.Controls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace DanTriNews.Src.Helper
{
    public class TransitionHelper
    {
        public static void excuteTransition(UIElement element)
        {
            RollTransition r = new RollTransition();
            //r. = RotateTransitionMode.In90Clockwise;
            ITransition transition = r.GetTransition(element);
            transition.Completed += delegate
            {
                transition.Stop();
            };
            transition.Begin();
        }
    }
}
